﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


    public partial class gamezeropage : System.Web.UI.Page
    {
        Kidclass kid = new Kidclass();
        Game2class game2 = new Game2class();
    
        protected void Page_Load(object sender, EventArgs e)
        {
            choose.Visible = false;
            Button2.Visible = false;
            Button1.Visible = false;
            number.Visible = false;
        }

        protected void Button1_Click1(object sender, EventArgs e)
        {
            choose.Visible = true;
            Button2.Visible = true;
            Button1.Visible = true;
            number.Visible = true;

            string yourchoose = choose.SelectedItem.Value.ToString();
            if (yourchoose == "0")
            {
                number.Text = choose.SelectedItem.Value.ToString();

            }
            else
            {

                number.Text = choose.SelectedItem.Value.ToString() + 0;
            }
        
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            choose.Visible = true;
            Button2.Visible = true;
            Button1.Visible = true;
            number.Visible = true;

            string yourchoose = choose.SelectedItem.Value.ToString();
            if (yourchoose == "0")
            {
                number.Text = choose.SelectedItem.Value.ToString();

            }
            else
            {
                number.Text = 0 + choose.SelectedItem.Value.ToString();
              
            }
        }

      

        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {

        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            Response.Redirect("playgames.aspx");
        }


        protected void Button4_Click(object sender, EventArgs e)
        {
            choose.Visible = true;
            Button2.Visible = true;
            Button1.Visible = true;
            number.Visible = true;

        }
}
